﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="New0201.ascx.cs" Inherits="SEVN.Web.Framework.Modules.News.New0201" %>
<link href="../../Styles/New0201.css" rel="stylesheet" />
<script type="text/javascript">
    $(document).ready(function () {
        $("a.tab").click(function () {
            $("#new0201 .active").removeClass("active");
            $(this).addClass("active");
            $("#new0201 .content_0").slideUp();
            var content_show = $(this).attr("title");
            $("#" + content_show).slideDown();
        });
    });
</script>
<div id="new0201" class="tabbed_box">
    <div class="tabbed_area">
        <ul class="tabs">
            <li><a href="javascript:void(0)" title="content_1" class="tab active">Tin mới   &nbsp;       
                <img src="../Images/News/new.gif" /></a></li>
            <li><a href="javascript:void(0)" title="content_2" class="tab">Tiêu điểm&nbsp;&nbsp;
                <img src="../Images/News/hot.gif" /></a></li>
        </ul>
        <div id="content_1" class="content_0">
            <asp:Repeater ID="RptNews" runat="server">
                <ItemTemplate>

                    <div class="anh">
                        <img style="width: 60px; height: 45px;" src='<%#Eval("Image") %>' alt="" />
                    </div>

                    <div class="title">
                        <a href='News.aspx?nid=<%#Eval("NewsID") %>&cid=<%#Eval("CategoryID") %>'>
                            <%#Eval("Title")%></a>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </div>
        <div id="content_2" class="content_0">
            <asp:Repeater ID="rptSpecial" runat="server">
                <ItemTemplate>
                    <div class="anh">
                        <img style="width: 60px; height: 45px;" src='<%#Eval("Image") %>' alt="" />
                    </div>
                    <div class="title">
                        <a href='News.aspx?nid=<%#Eval("NewsID") %>&cid=<%#Eval("CategoryID") %>'>
                            <%#Eval("Title")%></a>
                        <span class="cat">Lượt xem:<%#Eval("HitCount")%></span>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </div>
    </div>
</div>

